package cn.dapeng.lambda;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class LambdaT01 {

    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("a", "a");
        map.put("b", "b");
        map.put("c", "c");
        map.put("d", "d1");

        List<String> keys = map.keySet().stream().toList();

        System.out.println(Arrays.toString(keys.toArray()));

        List<String> values = map.values().stream().toList();
        System.out.println(Arrays.toString(values.toArray()));
    }


}
